import {request} from './http'
//获取验证码
export function sendMessage(data){
    return request({
        url:'/message/sendMessage',
        params:data,
        method:'get'
    })
}
//登录
export function miniLogin(data){
    return request({
        url:'user/miniLogin',
        data,
        method:'post'
    },false)
}
//账号列表
export function accountList(data){
    return request({
        url:'/userOrgRelation/getMyAccountNew',
        params:data,
        method:'get'
    })
}
//选择账号登录
export function setMyAccount(data){
    return request({
        url:'/userOrgRelation/setMyAccount',
        data,
        method:'post'
    },false)
}
//账号列表
export function companyType(data){
    return request({
        url:'/dict/listCompanyType',
        params:data,
        method:'get'
    })
}

//账号列表
export function companyName(data){
    return request({
        url:'/unioninitiator/listForUser',
        params:data,
        method:'get'
    })
}

//获取省市数据
export function reqProvinceCity(data){
    return request({
        url:'/region/queryTreeData',
        params:data,
        method:'get'
    })
}
//图片上传
export function reqUpload(data){
    return request({
        url:'/upLoading',
        data,
        method:'post'
    },false)
}
//单位上传
export function reqCompanyMember(data){
    return request({
        url:'/unionmember/saveInvitedCompanyMember',
        data,
        method:'post'
    },false)
}
//获取研究领域
export function reqSearchArea(data){
    return request({
        url:'/manager/Research/selectAllResearch',
        params:data,
        method:'get'
    })
}
//专家上传
export function reqExpertMember(data){
    return request({
        url:'/unionmember/saveInvitedExpertMember',
        data,
        method:'post'
    },false)
}